<template>
  <div>
    <el-button type="primary">按钮</el-button>
    <el-button type="success" @click="showTip">提示信息</el-button>
    <el-button type="info" @click="dialogVisible = true">弹框</el-button>
    <el-dialog
      title="提示"
      :visible.sync="dialogVisible"
      width="30%"
      :before-close="handleClose"
    >
      <span>欢迎来到Element-UI</span>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisible = false"
          >确 定</el-button
        >
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      dialogVisible: false,
    }
  },
  methods: {
    showTip() {
      this.$message({
        message: '恭喜你喜提弹窗',
        type: 'success',
      })
    },
    showDialog() {},
  },
}
</script>

<style></style>
